﻿namespace AjLogo.Language
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class ExpressionList : IExpression
    {
        private List<IExpression> expressions = new List<IExpression>();

        public void Add(IExpression expression) 
        {
            this.expressions.Add(expression);
        }

        public object Evaluate(BindingEnvironment environment)
        {
            foreach (IExpression expr in this.expressions)
                expr.Evaluate(environment);

            // TODO add output processing
            return null;
        }
    }
}
